{%extends "base.django.html"%}

{%block content%}

    {%if queries%}
        <h3>Queued ISBNs</h3>
        
        <table border="1">
            {% for query in queries %}
                <tr>
                    <td>{{query.timestamp}}</td>
                    <td>{{query.isbn}}</td>
                    {% if admin %}
                        <td>{{query.user}}</td>
                    {% endif %}
                </tr>
            {% endfor %}
        </table>


    {%endif%}
    {%if not queries%}
        <h3>No ISBNs in queue</h3>
    {%endif%}
{%endblock%}
